var i = 0;
var t = 0;
var nlclass = "warlock";
var nlclassPatch = "warlock";

nltree[i] = "Affliction"; i++;
nltree[i] = "Demonology"; i++;
nltree[i] = "Destruction"; i++;

i = 0;

nltalent[i] = ["Improved Curse of Agony"]; i++;
nltalent[i] = ["Suppression"]; i++;
nltalent[i] = ["Improved Corruption"]; i++;
nltalent[i] = ["Frailty"]; i++;
nltalent[i] = ["Improved Drain Soul"]; i++; 
nltalent[i] = ["Improved Life Tap"]; i++;
nltalent[i] = ["Soul Siphon"]; i++;
nltalent[i] = ["Improved Fear"]; i++;
nltalent[i] = ["Fel Concentration"]; i++;
nltalent[i] = ["Amplify Curse"]; i++;
nltalent[i] = ["Grim Reach"]; i++;
nltalent[i] = ["Nightfall"]; i++;
nltalent[i] = ["Empowered Corruption"]; i++;
nltalent[i] = ["Shadow Embrace"]; i++;
nltalent[i] = ["Siphon Life"]; i++;
nltalent[i] = ["Curse of Exhaustion"]; i++;
nltalent[i] = ["Improved Felhunter"]; i++;
nltalent[i] = ["Shadow Mastery"]; i++;
nltalent[i] = ["Eradication"]; i++;
nltalent[i] = ["Contagion"]; i++;
nltalent[i] = ["Dark Pact"]; i++;
nltalent[i] = ["Improved Howl of Terror"]; i++;
nltalent[i] = ["Malediction"]; i++;
nltalent[i] = ["Death's Embrace"]; i++;
nltalent[i] = ["Unstable Affliction"]; i++;
nltalent[i] = ["Pandemic"]; i++;
nltalent[i] = ["Everlasting Affliction"]; i++;
nltalent[i] = ["Haunt"]; i++;
treeStartStop[t] = i -1;
t++;

//demonology talents
nltalent[i] = ["Improved Healthstone"]; i++;
nltalent[i] = ["Improved Imp"]; i++;
nltalent[i] = ["Demonic Embrace"]; i++;
nltalent[i] = ["Improved Health Funnel"]; i++;
nltalent[i] = ["Demonic Brutality"]; i++;
nltalent[i] = ["Fel Vitality"]; i++;
nltalent[i] = ["Improved Succubus"]; i++;
nltalent[i] = ["Soul Link"]; i++;
nltalent[i] = ["Fel Domination"]; i++;
nltalent[i] = ["Demonic Aegis"]; i++;
nltalent[i] = ["Unholy Power"]; i++;
nltalent[i] = ["Master Summoner"]; i++;
nltalent[i] = ["Demonic Sacrifice"]; i++;
nltalent[i] = ["Master Conjuror"]; i++;
nltalent[i] = ["Mana Feed"]; i++;
nltalent[i] = ["Master Demonologist"]; i++;
nltalent[i] = ["Improved Enslave Demon"]; i++;
nltalent[i] = ["Demonic Resilience"]; i++;
nltalent[i] = ["Demonic Empowerment"]; i++;
nltalent[i] = ["Demonic Knowledge"]; i++;
nltalent[i] = ["Demonic Tactics"]; i++;
nltalent[i] = ["Fel Synergy"]; i++;
nltalent[i] = ["Improved Demonic Tactics"]; i++;
nltalent[i] = ["Summon Felguard"]; i++;
nltalent[i] = ["Demonic Empathy"]; i++;
nltalent[i] = ["Demonic Pact"]; i++;
nltalent[i] = ["Metamorphosis"]; i++;
treeStartStop[t] = i -1;
t++;

//destruction talents
nltalent[i] = ["Improved Shadow Bolt"]; i++;
nltalent[i] = ["Bane"]; i++;
nltalent[i] = ["Aftermath"]; i++;
nltalent[i] = ["Molten Core"]; i++;
nltalent[i] = ["Cataclysm"]; i++;
nltalent[i] = ["Demonic Power"]; i++;
nltalent[i] = ["Shadowburn"]; i++;
nltalent[i] = ["Ruin"]; i++;
nltalent[i] = ["Intensity"]; i++;
nltalent[i] = ["Destructive Reach"]; i++;
nltalent[i] = ["Improved Searing Pain"]; i++;
nltalent[i] = ["Pyroclasm"]; i++;
nltalent[i] = ["Improved Immolate"]; i++;
nltalent[i] = ["Devastation"]; i++;
nltalent[i] = ["Nether Protection"]; i++;
nltalent[i] = ["Emberstorm"]; i++;
nltalent[i] = ["Conflagrate"]; i++;
nltalent[i] = ["Soul Leech"]; i++;
nltalent[i] = ["Backlash"]; i++;
nltalent[i] = ["Shadow and Flame"]; i++;
nltalent[i] = ["Improved Soul Leech"]; i++;
nltalent[i] = ["Backdraft"]; i++;
nltalent[i] = ["Shadow Fury"]; i++;
nltalent[i] = ["Empowered Imp"]; i++;
nltalent[i] = ["Fire and Brimstone"]; i++;
nltalent[i] = ["Chaos Bolt"]; i++;
jsLoaded=true;//needed for ajax script loading